package com.lysj.merchant.desk.repository;

import com.lysj.admin.utils.spring.foundation.base.BaseRepository;
import com.lysj.admin.utils.web.SelectItem;
import com.lysj.merchant.desk.domain.DeskType;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author Created by drj on 2019-03-07 14:35:45
 * @description 餐桌类型dao
 */
public interface DeskTypeRepository extends BaseRepository<DeskType> {


    @Query("SELECT  NEW com.lysj.admin.utils.web.SelectItem(d.id AS value,d.name AS name) from DeskType d where d.storeId=?1 AND d.delFlag=1")
    List<SelectItem> selectItems(String storeId);
}